package com.yuanrui.practice.server.dao;

import com.yuanrui.practice.api.req.GetPreSetReq;
import com.yuanrui.practice.server.entity.dto.PracticeSetDTO;
import com.yuanrui.practice.server.entity.po.PracticeSetPO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface PracticeSetDao {
    void add(PracticeSetPO practiceSetPO);

    PracticeSetPO queryById(Long id);

    int updateHeat(Long setId);

    PracticeSetPO selectById(Long setId);

    Integer getListCount(@Param("dto") PracticeSetDTO dto);

    List<PracticeSetPO> getSetList(@Param("dto") PracticeSetDTO dto, @Param("start") int start, @Param("pageSize") Integer pageSize);
}
